package cc.rengu.redp.flowable.bizmodel.db.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 业务模型数据存储表
 *
 * @author System
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("T_BIZ_DATA")
public class BizData implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "DATA_ID")
    private Long dataId;

    /**
     * 业务数据模型ID
     */
    @TableField("MODEL_ID")
    private Long modelId;

    /**
     * 唯一键值
     */
    @TableField("UNIQ_KEY")
    private String uniqKey;

    /**
     * 唯一键值名称
     */
    @TableField("UNIQ_KEY_NAME")
    private String uniqKeyName;

    /**
     * 固定授权字段的值
     */
    @TableField("AUTH_FIXED_FIELD_VALUE")
    private String authFixedFieldValue;

    /**
     * 业务数据（JSON)
     */
    @TableField("DATA")
    private String data;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField("MODIFY_TIME")
    private LocalDateTime modifyTime;


}
